<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>无数据页面</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <style>
        html,
        body {
            background: #fff;
        }

        body {
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-flex-flow: column;
        }

        * {
            padding: 0;
            margin: 0;
        }

        header {
            height: 0rem;
            background-color: #3fd5a5;
        }
    </style>
</head>

<body>
    <header></header>
    <footer></footer>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/keyback.js"></script>
<script type="text/javascript">
    function initFront() {
        api.setStatusBarStyle({
            style: 'dark'
        });
        var header = $api.dom('header'); // 获取 header 标签元素
        var headerHeight = $api.fixStatusBar(header);

        var height = api.winHeight - headerHeight;
        var body = $api.dom('body');
        $api.css(body, 'height:' + height + 'px');
        var footer = $api.dom('footer');
        footer = $api.offset(footer);
        height -= footer.h;
        api.openFrame({
            name: 'nodata_farme',
            url: 'nodata_farme.html',
            rect: {
                x: 0,
                y: headerHeight,
                w: 'auto',
                h: height
            },
            pageParam: {
                name: 'test'
            },
            bounces: true,
            bgColor: 'rgba(0,0,0,0)',
            vScrollBarEnabled: true,
            hScrollBarEnabled: true
        });


    }

    apiready = function() {
        initFront();

    };
</script>

</html>
